import axios from "~/axios"


export function getImageList(id,page = 1){
    return axios.get(`/admin/image_class/${id}/image/${page}`)
}

export function UpdateImage(id,name){
    return axios.post("/admin/image/"+id,{name})
}

export function Deleteimage(ids){
    return axios.post("/admin/image/delete_all",{ids})
}

export const uploadImageAction="/api/admin/image/upload"